#!/bin/sh

chmod +x configure config.sub config.guess

dirs="pxshm svsem svshm my_pxsem_mmap svmsgmpxnq shm pxsem my_rwlock pipemesg mutex my_rwlock_cancel svmsgcliserv my_pxmsg_mmap svmsg svipc pxmsg fifocliserv rtsignals svmsgmpx1q lock my_pxsem_fifo pipe bench my_pxsem_svsem"

for dir in $dirs
do
    file="$dir/unpipc.h"
    rm -rf $file
    pwd=`pwd`
    `cd $pwd/$dir;ln -s ../lib/unpipc.h`
done